<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>mockjs</title>
    <!-- 引入Jquery -->
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <!-- 模板拼接 -->
    <script src="https://unpkg.com/art-template@4.13.2/lib/template-web.js"></script>
</head>

<body>
    <h3>欢迎光临</h3>
    <input type="button" value="点击有惊喜" id="btn">
    <div id="min">
    </div>
    <!-- 模拟数据 -->
    <script type="text/html" id="listTpl">
        <ul>
            {{each data}}
            <li>
                <span>{{$value.name}}</span>
                <span>{{$value.age}}</span>
                {{each $value.array}}
                <span>{{$value}}</span>
                {{/each}}
                <span>{{$value.isLogin? '真':'假'}}</span>
            </li>
            {{/each}}
        </ul>
     </script>
    <script src="./js/index.js"></script>
</body>

</html>